// 导入请求实例

import axios from "./request.js"

export function fetchAddUserAddress(user_id, formData) {
    return axios.post(`/addaddress/${user_id}`, formData)
}


export function fetchGetUserAddress(user_id) {
    return axios.get(`/getaddress/${user_id}`)
}


export function fetchDeleteAddress(address_id) {
    return axios.post(`/deladdress/${address_id}`)
}


export function fetchUpAddress(address_id,addressInfo) {
    return axios.post(`/updateaddress/${address_id}`,addressInfo)
}